package com.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

@Accessors
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbOrderItem implements Serializable {
    /**
     * ID
     *
     * @mbg.generated
     */
    private String id;

    /**
     * 订单ID
     *
     * @mbg.generated
     */
    private String orderId;

    /**
     * 商品名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 单价
     *
     * @mbg.generated
     */
    private BigDecimal price;

    /**
     * 数量
     *
     * @mbg.generated
     */
    private Integer num;

    /**
     * 总金额
     *
     * @mbg.generated
     */
    private BigDecimal money;

    /**
     * 实付金额
     *
     * @mbg.generated
     */
    private BigDecimal payMoney;

    /**
     * 图片地址
     *
     * @mbg.generated
     */
    private String image;

    /**
     * 重量
     *
     * @mbg.generated
     */
    private Integer weight;

    /**
     * 运费
     *
     * @mbg.generated
     */
    private BigDecimal postFee;

    /**
     * 是否退货,0:未退货，1：已退货
     *
     * @mbg.generated
     */
    private String isReturn;

    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderId=").append(orderId);
        sb.append(", name=").append(name);
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append(", money=").append(money);
        sb.append(", payMoney=").append(payMoney);
        sb.append(", image=").append(image);
        sb.append(", weight=").append(weight);
        sb.append(", postFee=").append(postFee);
        sb.append(", isReturn=").append(isReturn);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}